<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>计算机属性</title>
</head>
<body>
<div id="app">
    您的生日为：{{birth.getFullYear()}}年{{birth.getMonth()}}月{{birth.getDate()}}日
</div>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let vue = new Vue({
            el: "#app",
            data: {
                birthday: 1657416543294
            },
            computed: {
                birth() {
                    return new Date(this.birthday)
                }
            }
        })
    ;
</script>
</body>
</html>